package com.xunyun.kotlinwc.main.datasource

import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.paging.DataSource
import com.xunyun.kotlinwc.main.model.Article
import com.xunyun.kotlinwc.main.model.Project

/**
 * @author gl
 * @date 2021/9/13
 * @desc
 */
class ProjectDataSourceFactory(var lifecycleOwner: LifecycleOwner, var infoMsg: MutableLiveData<String>,
                               var cid: Int) : DataSource.Factory<Int, Project>() {
    override fun create(): DataSource<Int, Project> {
        return ProjectDataSource(lifecycleOwner,infoMsg, cid)
    }
}